package com.game.spacetrader;

import java.io.Serializable;

public class Ship implements Serializable {
	
	/**
	 * Ship.java
	 * information holder for ships
	 * 
	 * @Version 0.2 (oct 8, 2012)
	 */
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int hull,maxTravel,numWepSlot,numGadgetSlot,cargoHolds,shieldSlot,crew;
	private String name;

	/**
	 * @param name
	 * @param hull
	 * @param maxTravel
	 * @param numWepSlot
	 * @param numGadgetSlot
	 * @param cargoHolds
	 * @param shieldSlot
	 * @param crew
	 */
	public Ship(String name, int hull,int maxTravel,int numWepSlot,int numGadgetSlot,int cargoHolds,int shieldSlot,int crew){
		this.name = name;
		this.hull =hull;
		this.maxTravel = maxTravel;
		this.numWepSlot = numWepSlot;
		this.numGadgetSlot = numGadgetSlot;
		this.cargoHolds = cargoHolds;
		this.shieldSlot = shieldSlot;
		this.setCrew(crew);
	}

	/**
	 * @return the hull
	 */
	public int getHull() {
		return hull;
	}

	/**
	 * @param hull the hull to set
	 */
	public void setHull(int hull) {
		this.hull = hull;
	}
	
	/**
	 * @return the shieldSlot
	 */
	public int getShieldSlot() {
		return shieldSlot;
	}

	/**
	 * @param shieldSlot the shieldSlot to set
	 */
	public void setShieldSlot(int shieldSlot) {
		this.shieldSlot = shieldSlot;
	}

	/**
	 * @return the maxTravel
	 */
	public int getMaxTravel() {
		return maxTravel;
	}

	/**
	 * @param maxTravel the maxTravel to set
	 */
	public void setMaxTravel(int maxTravel) {
		this.maxTravel = maxTravel;
	}

	/**
	 * @return the numWepSlot
	 */
	public int getNumWepSlot() {
		return numWepSlot;
	}

	/**
	 * @param numWepSlot the numWepSlot to set
	 */
	public void setNumWepSlot(int numWepSlot) {
		this.numWepSlot = numWepSlot;
	}

	/**
	 * @return the numGadgetSlot
	 */
	public int getNumGadgetSlot() {
		return numGadgetSlot;
	}

	/**
	 * @param numGadgetSlot the numGadgetSlot to set
	 */
	public void setNumGadgetSlot(int numGadgetSlot) {
		this.numGadgetSlot = numGadgetSlot;
	}

	/**
	 * @return the cargoHolds
	 */
	public int getCargoHolds() {
		return cargoHolds;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return name;
	}

	public int getCrew() {
		return crew;
	}

	public void setCrew(int crew) {
		this.crew = crew;
	}
	
	
	
}